﻿using System;
using System.Collections.Generic;

namespace Vision.VisionWorkshop.Controls
{
    /// <summary>
    /// A simple data transfer object that contains raw data about a person.
    /// </summary>
    public class TypeInfo : IComparable
    {
        private IList<TypeInfo> children = new List<TypeInfo>();
        public IList<TypeInfo> Children
        {
            get { return this.children; }
            set { this.children = value; }
        }

        public string MemberName { get; set; }
        public string TypeName { get; set; }

        public int CompareTo(object obj)
        {
            return MemberName.CompareTo(((TypeInfo)obj).MemberName);
        }
    }
}